﻿using MS.Core.JsonConverters;
using SqlSugar;
using System;
using System.Text.Json.Serialization;

namespace ReportDesignerServer.DataModel
{
    /// <summary>
    /// PatientInHospital
    /// </summary>
    [SugarTable("PatientInHospital")]
    public class PatientInHospital
    {

        /// <summary>
        /// 主键
        /// </summary>

        [JsonConverter(typeof(LongToStringConverter))]
        [SugarColumn(IsPrimaryKey = true)]
        public long ID { get; set; }
 
        /// <summary>
        /// 患者ID,患者唯一标记
        /// </summary>
        public string PATIENTID { get; set; }

        [SugarColumn(IsNullable = true)]
        /// <summary>
        /// 姓名
        /// </summary>
        public string NAME { get; set; }

        [SugarColumn(IsNullable = true)]
        /// <summary>
        /// 床号
        /// </summary>
        public string BED { get; set; }

        [SugarColumn(IsNullable = true)]
        /// <summary>
        /// 年龄
        /// </summary>

        public int AGE { get; set; }

        [SugarColumn(IsNullable = true)]
        /// <summary>
        /// 性别
        /// </summary>
        public string SEX { get; set; }

        [SugarColumn(IsNullable = true)]
        /// <summary>
        /// 入院时间
        /// </summary>
        public DateTime? INTIME { get; set; }

        [SugarColumn(IsNullable = true)]
        /// <summary>
        /// 是否出院
        /// </summary>
        public int ISOUT { get; set; }

        [SugarColumn(IsNullable = true)]
        /// <summary>
        /// 出院时间
        /// </summary>
        public DateTime? OUTTIME { get; set; }

    }

}